<template>
  <div id="app">
    <datePicker @getTime="getTime" :options='options'></datePicker>
    <div>{{time}}</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      time: "2021-03-12",
      options: {
        width: 300,
        height: 300,
        limit: ["2010-11-1", "2021-05-30"],
      },
    };
  },
  methods: {
    getTime(date) {
      this.time = date;
    },
  },
};
</script>
